package com.tuanzi.loan.business.service.application;

import com.tuanzi.loan.business.entity.application.LoanApplicationExportGroup;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.application.LoanApplicationExportGroupRequest;
import com.tuanzi.loan.vo.response.application.LoanApplicationExportGroupResponse;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @Auther: hequnayu
 * @Date: 2019/7/30 15:54
 * @Description:
 */
public interface LoanApplicationExportGroupService extends CommonService<LoanApplicationExportGroup,Long> {
    Page<LoanApplicationExportGroupResponse> list(PageSearcher<LoanApplicationExportGroupRequest> pageSearcher);

    List<LoanApplicationExportGroup> findByPageId(Long pageId);

    LoanApplicationExportGroup findByGroupIdAndType(Integer groupId,Integer type);

    public Integer getBiggestGroupId();
}
